import {validatorPhone} from "@/utils/validate"
const rules =  {
    name: [
      { required: true, message: '请输入名称', trigger: 'change' },
      { min: 3, max: 20, message: '长度在 3 到 20 个字符', trigger: 'change' }
    ],
    address: [
      { required: true, message: '请输入地址', trigger: 'change' },
    ],
    phoneNum:[
      { required: true,validator: validatorPhone, trigger: 'change' }
    ]
    
  }
    
  export default rules